import Vue from 'vue'
import App from './App.vue'
import router from './router'
//拿所有接口请求函数
import * as API from '@/api' 
import './rem'

//引入tabbar
import Tabbar from '@/components/Tabbar'
Vue.component('Tabbar',Tabbar)

//引入iconfont
import '@/assets/font/iconfont.css'

//引入vuex
import store from '@/store'
import Header from '@/components/Header'
Vue.component('Header',Header)

import '@/plugins/usevVant'

Vue.config.productionTip = false

new Vue({
  beforeCreate(){
    Vue.prototype.$API = API
    Vue.prototype.$bus = this
  },
  router,
  store,
  render: h => h(App),
}).$mount('#app')
